package megrez.job.custom.config;

import java.util.Optional;

import org.springframework.data.domain.AuditorAware;

import megrez.job.common.SecurityUtils;

/**
 * 审计信息
 *  
 * @author Lucky Yang
 * @since 2.6.9
 */
public class AuditorAwareImpl implements AuditorAware<String> {

    @Override
    public Optional<String> getCurrentAuditor() {
       return SecurityUtils.getCurrentUserOptional();
    }
    
}
